//
//  Skill.h
//  CandyJump
//
//  Created by Bon Lam on 03/07/2011.
//  Copyright 2011 Peru Republic. All rights reserved.
//

//=====================================================================================================================
typedef enum
{
	SKILL_TYPE_JUMP_UNDEFINED = 0,
	SKILL_TYPE_JUMP_BOOST,
	SKILL_TYPE_MAGNET,
	SKILL_TYPE_PLATFORM_BUILDER,
	SKILL_TYPE_BUBBLE,
	SKILL_TYPE_IMMUNE,
	SKILL_TYPE_TELEPORT,
	SKILL_TYPE_ROCKET,
}	SKILL_TYPE;

//=====================================================================================================================
@interface Skill : NSObject
{
	NSString		*skillCode;
	SKILL_TYPE		skillType;
	
	NSString		*displayName;
	
	//!	An array of NSString of buffCode.
	NSMutableArray	*buffCodeArray;
}
//---------------------------------------------------------------------------------------------------------------------
@property (nonatomic, retain, readonly) NSString *skillCode;
@property (nonatomic, assign, readonly) SKILL_TYPE skillType;
@property (nonatomic, retain, readonly) NSString *displayName;
@property (nonatomic, retain, readonly) NSMutableArray *buffCodeArray;

//---------------------------------------------------------------------------------------------------------------------
#pragma mark Skill - Initialization
- (id)init;
- (void)dealloc;

#pragma mark Skill - Static Functions
+ (SKILL_TYPE) skillTypeByString:(NSString *)str;

@end
